﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using JqueryNet;

namespace njquerytest
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //if (!IsPostBack)
            //{
                JQuery.Get(Button3).BindEvent("Click", new EventHandler((a, b) => Response.Write("哈哈!绑定了")));
            //}
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            //Response.Write(JQuery.Get(Reset1).ToggleClass("t").Click("function a(){ alert('hello');} a();")
            //    .Height("200px").Val().Value);
            //Response.Write(JQuery.Get(Reset1).Css("height").Value);

            //Response.Write("---------------<br/>");
            //Response.Write(JQuery.Get(Button2).ToggleClass("t").Click("function a(){ alert('hello');} a();").Val("哈哈")//Attr("value","嘻嘻")
            // //.Height("200px")
            // .Val().Value);

            //Response.Write(JQuery.Get(Button2).Css("height").Value);
        }
    }
}